<?xml version="1.0"?>

<!--
 CDDL HEADER START

 The contents of this file are subject to the terms of the
 Common Development and Distribution License (the "License").
 You may not use this file except in compliance with the License.

 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 or http://www.opensolaris.org/os/licensing.
 See the License for the specific language governing permissions
 and limitations under the License.

 When distributing Covered Code, include this CDDL HEADER in each
 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 If applicable, add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your own identifying
 information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END

 Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.

 DO NOT EDIT THIS FILE.
-->

<!DOCTYPE platform PUBLIC "-//Sun Microsystems Inc//Zones Platform//EN"
    "file:///usr/share/lib/xml/dtd/zone_platform.dtd.1">

<platform name="solaris10" allow-exclusive-ip="true">

	<!-- Global filesystems to mount when booting the zone -->
	<global_mount special="/dev" directory="/dev" type="dev"
	    opt="attrdir=%R/dev"/>

	<!--
	    Local filesystems to mount when booting the zone.  The
	    /.SUNWnative/platform entry is needed so that we can symlink a
	    platform-specific libc_psr for platforms which were not delivered
	    with S10.  The /.SUNWnative/sbin entry is needed so that we can
	    replace ifconfig with its native counterpart (this is required for
	    exclusive-stack S10 zones to work).
	-->
	<global_mount special="/usr" directory="/.SUNWnative/usr"
	    opt="ro,nodevices" type="lofs" />
	<global_mount special="/lib" directory="/.SUNWnative/lib"
	    opt="ro,nodevices" type="lofs" />
	<global_mount special="/platform" directory="/.SUNWnative/platform"
	    opt="ro,nodevices" type="lofs" />
	<global_mount special="/sbin" directory="/.SUNWnative/sbin"
	    opt="ro,nodevices" type="lofs" />

	<!-- Local filesystems to mount when booting the zone -->
	<mount special="/proc" directory="/proc" type="proc" />
	<mount special="ctfs" directory="/system/contract" type="ctfs" />
	<mount special="mnttab" directory="/etc/mnttab" type="mntfs" />
	<mount special="objfs" directory="/system/object" type="objfs" />
	<mount special="swap" directory="/etc/svc/volatile" type="tmpfs" />

	<!-- Devices to create under /dev -->
	<device match="arp" />
	<device match="bpf" />
	<device match="conslog" />
	<device match="cpu/self/cpuid" />
	<device match="crypto" />
	<device match="cryptoadm" />
	<device match="dsk" />
	<device match="dtrace/*" />
	<device match="dtrace/provider/*" />
	<device match="fd" />
	<device match="full" />
	<device match="ipnet" />
	<device match="kstat" />
	<device match="lo0" />
	<device match="lofictl" />
	<device match="lofi" />
	<device match="log" />
	<device match="logindmux" />
	<device match="nsmb" />
	<device match="net/*" />
	<device match="null" />
	<device match="openprom" arch="sparc" />
	<device match="poll" />
	<device match="pool" />
	<device match="ptmx" />
	<device match="pts/*" />
	<device match="random" />
	<device match="rdsk" />
	<device match="rlofi" />
	<device match="rmt" />
	<device match="sad/user" />
	<device match="svvslo0" />
	<device match="svvslo1" />
	<device match="svvslo2" />
	<device match="svvslo3" />
	<device match="swap" />
	<device match="sysevent" />
	<device match="tcp" />
	<device match="tcp6" />
	<device match="term" />
	<device match="ticlts" />
	<device match="ticots" />
	<device match="ticotsord" />
	<device match="tty" />
	<device match="udp" />
	<device match="udp6" />
	<device match="urandom" />
	<device match="zero" />
	<device match="zfs" />

	<!-- Devices to create in exclusive IP zone only -->
	<device match="dld" ip-type="exclusive" />
	<device match="icmp" ip-type="exclusive" />
	<device match="icmp6" ip-type="exclusive" />
	<device match="ip" ip-type="exclusive" />
	<device match="ip6" ip-type="exclusive" />
	<device match="ipauth" ip-type="exclusive" />
	<device match="ipf" ip-type="exclusive" />
	<device match="ipl" ip-type="exclusive" />
	<device match="iplookup" ip-type="exclusive" />
	<device match="ipmpstub" ip-type="exclusive" />
	<device match="ipnat" ip-type="exclusive" />
	<device match="ipscan" ip-type="exclusive" />
	<device match="ipsecah" ip-type="exclusive" />
	<device match="ipsecesp" ip-type="exclusive" />
	<device match="ipstate" ip-type="exclusive" />
	<device match="ipsync" ip-type="exclusive" />
	<device match="keysock" ip-type="exclusive" />
	<device match="rawip" ip-type="exclusive" />
	<device match="rawip6" ip-type="exclusive" />
	<device match="rts" ip-type="exclusive" />
	<device match="sad/admin" ip-type="exclusive" />
	<device match="sctp" ip-type="exclusive" />
	<device match="sctp6" ip-type="exclusive" />
	<device match="spdsock" ip-type="exclusive" />
	<device match="sppp" ip-type="exclusive" />
	<device match="sppptun" ip-type="exclusive" />
	<device match="vni" ip-type="exclusive" />

	<!-- Renamed devices to create under /dev -->
	<device match="zcons/%z/zoneconsole" name="zconsole" />

	<!-- Symlinks to create under /dev -->
	<symlink source="console" target="zconsole" />
	<symlink source="dtremote" target="/dev/null" />
	<symlink source="msglog" target="zconsole" />
	<symlink source="stderr" target="./fd/2" />
	<symlink source="stdin" target="./fd/0" />
	<symlink source="stdout" target="./fd/1" />
	<symlink source="syscon" target="zconsole" />
	<symlink source="sysmsg" target="zconsole" />
	<symlink source="systty" target="zconsole" />
</platform>
